import qiniu from 'qiniu'
import { options, accessKey, secretKey } from '../config/qiniu'

// 鉴权对象
const mac = new qiniu.auth.digest.Mac(accessKey, secretKey)
const putPolicy = new qiniu.rs.PutPolicy(options)

export const uploadToken = putPolicy.uploadToken(mac)
